package indi.jp.project.business.jingying.dao;

import indi.jp.project.business.jingying.pojo.po.WeekPlanItemPO;
import indi.jp.project.business.jingying.pojo.po.WeekPlanPO;
import org.apache.ibatis.annotations.Mapper;

import java.sql.SQLException;
import java.util.List;

/**
 * 工作计划DAO
 *
 * @author jiangping
 * @date 2022/6/13
 */
@Mapper
public interface WeekPlanDAO {

    List<WeekPlanPO> queryList() throws SQLException;

    int queryCount() throws SQLException;

    WeekPlanPO findPoById(String id) throws SQLException;

    List<WeekPlanItemPO> queryItemList(String planId) throws SQLException;

    void insert(WeekPlanPO weekPlanPO) throws SQLException;

    void update(WeekPlanPO weekPlanPO) throws SQLException;

    void deleteItem(String planId) throws SQLException;

    void insertItemBatch(List<WeekPlanItemPO> list) throws SQLException;
}
